import React from 'react';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';

import { Spin } from 'antd';
import './index.scss'

class Finish extends React.Component {
    constructor(props) {
        super(props)
        this.state = {
            // is_uploading:undefined,
        }
    }

    render() {
        const { is_uploading } = this.props;
        return (
            <div className='finish'>
                <div className='finish-box'>

                    {
                        is_uploading ?
                            <div className='finish-title'>
                                <p><b>正在提交,请稍候！</b></p>
                                <Spin tip='loading...' size="large" />
                            </div>
                            :
                            <div>
                                <div className='finish-title'>
                                    <p><b>恭喜您！</b></p>
                                    <p><b>波涛建材选购成功</b></p>
                                </div>

                                <div className='finish-btn'>
                                    <Link to='/welcome' className='active'>确定</Link>
                                </div>
                            </div>
                    }

                </div>
            </div>
        )

    }
}
export default Finish